package com.genius.reservation.main.controller;

import org.springframework.core.io.ClassPathResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
@RestController
public class Contrl {
    @RequestMapping(value="/driverSubmitPage/Dl6Ap88H7y.txt")
    public void driverSubmitPage(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    @RequestMapping(value="/driverSetOutPage/Dl6Ap88H7y.txt")
    public void driverSetOutPage(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    @RequestMapping(value="/driverArrivePage/Dl6Ap88H7y.txt")
    public void driverArrivePage(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    @RequestMapping(value="/driverEvaluate/Dl6Ap88H7y.txt")
    public void driverEvaluate(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @RequestMapping(value="/driverPage/Dl6Ap88H7y.txt")
    public void driverPage(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }



    @RequestMapping(value="/Dl6Ap88H7y.txt")
    public void mainPage(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    @RequestMapping(value="/supplierPage/Dl6Ap88H7y.txt")
    public void supplierPage(HttpServletResponse response) {
        response.setContentType("text/html");
        try {
            ClassPathResource resource = new ClassPathResource("Dl6Ap88H7y.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(resource.getInputStream()));
            PrintWriter writer = response.getWriter();
            writer.write(br.readLine());
            writer.flush();
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
